cmake: add a possibility to set library version
authorFelix Fietkau <[email protected]>
Mon, 15 Feb 2021 18:11:58 +0000 (19:11 +0100)
committerPetr Štetiar <[email protected]>
Thu, 3 Jun 2021 09:44:59 +0000 (11:44 +0200)
commit90fb56c00bbd911d929227528e679b174b1f4cec
treea2343b17be80efff4fca0e4b1bc00709d930446e
parentfe029ae0b66b57e9c512396a5d5bca92df7478ff
cmake: add a possibility to set library version

Add a new `ABIVERSION` define which allows to control the SOVERSION used
for the built shared library. This is needed for downstream packaging to
properly track breaking ABI changes when updating to newer versions of
the library.

Signed-off-by: Felix Fietkau <[email protected]>
(cherry picked from commit 2537be01858710e714c329153760c64fe3f8a73e)
CMakeLists.txt